<%--
  Created by IntelliJ IDEA.
  User: HeMuqing
  Date: 2020/7/22
  Time: 9:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    System.out.println("basepath:"+basepath);
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<html>
<head>
    <base href="<%=basepath%>"/>
    <title>本月账单</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../css/layui.css" media="all">
    <script src="../js/layui.js" charset="utf-8"></script>
</head>
<body>
<h1>本月账单详情</h1>
<table style="margin: auto">
    <tr>
        <td>卡号：</td>
        <td>${monthBill.creditCardId}</td>
    </tr>
    <tr>
        <td>出账日：</td>
        <td><fmt:formatDate value="${monthBill.billDate}" pattern="yyyy-MM-dd"></fmt:formatDate>
            </td>
    </tr>
    <tr>
        <td>最后还款日：</td>
        <td><fmt:formatDate value="${finalRepaymentDate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
    </tr>
    <tr>
        <td>当前状态：</td>
        <td>${monthBill.billStatus}</td>
    </tr>
    <tr>
        <td>普通消费金额：</td>
        <td>${monthBill.consumSimpleAmount}</td>
    </tr>
    <tr>
        <td>分期消费金额：</td>
        <td>${monthBill.consumInstallmentAmount}</td>
    </tr>
    <tr>
        <td>分期账单金额：</td>
        <td>${monthBill.installmentAmount}</td>
    </tr>
    <tr>
        <td>分期账单手续费：</td>
        <td>${monthBill.installmentRatenum}</td>
    </tr>
    <tr>
        <td>历史账单金额：</td>
        <td>${monthBill.historyAmount}</td>
    </tr>
    <tr>
        <td>历史账单利息：</td>
        <td>${monthBill.historyInterest}</td>
    </tr>
    <tr>
        <td>总计应还：</td>
        <td>${totalAmount}</td>
    </tr>

</table>
<button type="button" value="全额还款" >全额还款</button>
<button type="button" value="分期还款" >分期还款</button>
<button type="button" value="自选额度还款" >自选额度还款</button>

</body>
</html>
